/**
 * 响应数据类型
 */
export declare namespace RespDataType {
    export interface RoleItem {
        roleId: number,
        roleName: string,
        dataScope: string,  // 数据范围
        status: string,
        createTime: string,
    }

    export type RolePageList = PageList<RoleItem>;

    // 菜单树
    export interface MenuTreeNode {
        id: number;
        label: string;
        children?: MenuTreeNode[]
    }

    export type MenuTree = MenuTreeNode[];

    // 角色选中的菜单数据
    export interface RoleMenuTreeItem {
        menus:any,
        checkedKeys:number[]
    }

    // 角色自定义的数据范围
    export interface RoleSelectedCustomDataScope{
        checkedKeys: number[],
        depts: DeptTree;
    }

    export type DeptTree = DeptTreeNode[];

    interface DeptTreeNode {
        id: number;
        label: string;
        children: DeptTreeNode[];
    }
}

/**
 * 新增数据类型
 */
export declare namespace RequestDataType {
    export interface CreateRoleItem {
        status: string;
        roleName: string;
        menuIds:number[];
    }

    export interface UpdateRoleItem {
        status: string;
        remark: string;
        roleName: string;
        menuIds?:number[];
        roleId?:number;
    }

    export interface TreeItem {
        data:Array<any>;
    }
}



